package com.quanyan.stadium.entity;

import com.quanyan.common.Plugin.Page;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbGameEventScoreExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public TbGameEventScoreExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGameEventIdIsNull() {
            addCriterion("game_event_id is null");
            return (Criteria) this;
        }

        public Criteria andGameEventIdIsNotNull() {
            addCriterion("game_event_id is not null");
            return (Criteria) this;
        }

        public Criteria andGameEventIdEqualTo(Integer value) {
            addCriterion("game_event_id =", value, "gameEventId");
            return (Criteria) this;
        }

        public Criteria andGameEventIdNotEqualTo(Integer value) {
            addCriterion("game_event_id <>", value, "gameEventId");
            return (Criteria) this;
        }

        public Criteria andGameEventIdGreaterThan(Integer value) {
            addCriterion("game_event_id >", value, "gameEventId");
            return (Criteria) this;
        }

        public Criteria andGameEventIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("game_event_id >=", value, "gameEventId");
            return (Criteria) this;
        }

        public Criteria andGameEventIdLessThan(Integer value) {
            addCriterion("game_event_id <", value, "gameEventId");
            return (Criteria) this;
        }

        public Criteria andGameEventIdLessThanOrEqualTo(Integer value) {
            addCriterion("game_event_id <=", value, "gameEventId");
            return (Criteria) this;
        }

        public Criteria andGameEventIdIn(List<Integer> values) {
            addCriterion("game_event_id in", values, "gameEventId");
            return (Criteria) this;
        }

        public Criteria andGameEventIdNotIn(List<Integer> values) {
            addCriterion("game_event_id not in", values, "gameEventId");
            return (Criteria) this;
        }

        public Criteria andGameEventIdBetween(Integer value1, Integer value2) {
            addCriterion("game_event_id between", value1, value2, "gameEventId");
            return (Criteria) this;
        }

        public Criteria andGameEventIdNotBetween(Integer value1, Integer value2) {
            addCriterion("game_event_id not between", value1, value2, "gameEventId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdIsNull() {
            addCriterion("game_event_team_id is null");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdIsNotNull() {
            addCriterion("game_event_team_id is not null");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdEqualTo(Integer value) {
            addCriterion("game_event_team_id =", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdNotEqualTo(Integer value) {
            addCriterion("game_event_team_id <>", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdGreaterThan(Integer value) {
            addCriterion("game_event_team_id >", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("game_event_team_id >=", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdLessThan(Integer value) {
            addCriterion("game_event_team_id <", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdLessThanOrEqualTo(Integer value) {
            addCriterion("game_event_team_id <=", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdIn(List<Integer> values) {
            addCriterion("game_event_team_id in", values, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdNotIn(List<Integer> values) {
            addCriterion("game_event_team_id not in", values, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdBetween(Integer value1, Integer value2) {
            addCriterion("game_event_team_id between", value1, value2, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdNotBetween(Integer value1, Integer value2) {
            addCriterion("game_event_team_id not between", value1, value2, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Byte value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Byte value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Byte value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Byte value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Byte value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Byte> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Byte> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Byte value1, Byte value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("uid is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uid is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("uid =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("uid <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("uid >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uid >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("uid <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("uid <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("uid in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("uid not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("uid between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("uid not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andClubIdIsNull() {
            addCriterion("club_id is null");
            return (Criteria) this;
        }

        public Criteria andClubIdIsNotNull() {
            addCriterion("club_id is not null");
            return (Criteria) this;
        }

        public Criteria andClubIdEqualTo(Integer value) {
            addCriterion("club_id =", value, "clubId");
            return (Criteria) this;
        }

        public Criteria andClubIdNotEqualTo(Integer value) {
            addCriterion("club_id <>", value, "clubId");
            return (Criteria) this;
        }

        public Criteria andClubIdGreaterThan(Integer value) {
            addCriterion("club_id >", value, "clubId");
            return (Criteria) this;
        }

        public Criteria andClubIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("club_id >=", value, "clubId");
            return (Criteria) this;
        }

        public Criteria andClubIdLessThan(Integer value) {
            addCriterion("club_id <", value, "clubId");
            return (Criteria) this;
        }

        public Criteria andClubIdLessThanOrEqualTo(Integer value) {
            addCriterion("club_id <=", value, "clubId");
            return (Criteria) this;
        }

        public Criteria andClubIdIn(List<Integer> values) {
            addCriterion("club_id in", values, "clubId");
            return (Criteria) this;
        }

        public Criteria andClubIdNotIn(List<Integer> values) {
            addCriterion("club_id not in", values, "clubId");
            return (Criteria) this;
        }

        public Criteria andClubIdBetween(Integer value1, Integer value2) {
            addCriterion("club_id between", value1, value2, "clubId");
            return (Criteria) this;
        }

        public Criteria andClubIdNotBetween(Integer value1, Integer value2) {
            addCriterion("club_id not between", value1, value2, "clubId");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Double value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Double value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Double value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Double value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Double value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Double value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Double> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Double> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Double value1, Double value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Double value1, Double value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreIsNull() {
            addCriterion("original_score is null");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreIsNotNull() {
            addCriterion("original_score is not null");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreEqualTo(Double value) {
            addCriterion("original_score =", value, "originalScore");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreNotEqualTo(Double value) {
            addCriterion("original_score <>", value, "originalScore");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreGreaterThan(Double value) {
            addCriterion("original_score >", value, "originalScore");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreGreaterThanOrEqualTo(Double value) {
            addCriterion("original_score >=", value, "originalScore");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreLessThan(Double value) {
            addCriterion("original_score <", value, "originalScore");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreLessThanOrEqualTo(Double value) {
            addCriterion("original_score <=", value, "originalScore");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreIn(List<Double> values) {
            addCriterion("original_score in", values, "originalScore");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreNotIn(List<Double> values) {
            addCriterion("original_score not in", values, "originalScore");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreBetween(Double value1, Double value2) {
            addCriterion("original_score between", value1, value2, "originalScore");
            return (Criteria) this;
        }

        public Criteria andOriginalScoreNotBetween(Double value1, Double value2) {
            addCriterion("original_score not between", value1, value2, "originalScore");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreIsNull() {
            addCriterion("opponent_score is null");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreIsNotNull() {
            addCriterion("opponent_score is not null");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreEqualTo(Double value) {
            addCriterion("opponent_score =", value, "opponentScore");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreNotEqualTo(Double value) {
            addCriterion("opponent_score <>", value, "opponentScore");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreGreaterThan(Double value) {
            addCriterion("opponent_score >", value, "opponentScore");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreGreaterThanOrEqualTo(Double value) {
            addCriterion("opponent_score >=", value, "opponentScore");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreLessThan(Double value) {
            addCriterion("opponent_score <", value, "opponentScore");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreLessThanOrEqualTo(Double value) {
            addCriterion("opponent_score <=", value, "opponentScore");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreIn(List<Double> values) {
            addCriterion("opponent_score in", values, "opponentScore");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreNotIn(List<Double> values) {
            addCriterion("opponent_score not in", values, "opponentScore");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreBetween(Double value1, Double value2) {
            addCriterion("opponent_score between", value1, value2, "opponentScore");
            return (Criteria) this;
        }

        public Criteria andOpponentScoreNotBetween(Double value1, Double value2) {
            addCriterion("opponent_score not between", value1, value2, "opponentScore");
            return (Criteria) this;
        }

        public Criteria andSmallScoreIsNull() {
            addCriterion("small_score is null");
            return (Criteria) this;
        }

        public Criteria andSmallScoreIsNotNull() {
            addCriterion("small_score is not null");
            return (Criteria) this;
        }

        public Criteria andSmallScoreEqualTo(Double value) {
            addCriterion("small_score =", value, "smallScore");
            return (Criteria) this;
        }

        public Criteria andSmallScoreNotEqualTo(Double value) {
            addCriterion("small_score <>", value, "smallScore");
            return (Criteria) this;
        }

        public Criteria andSmallScoreGreaterThan(Double value) {
            addCriterion("small_score >", value, "smallScore");
            return (Criteria) this;
        }

        public Criteria andSmallScoreGreaterThanOrEqualTo(Double value) {
            addCriterion("small_score >=", value, "smallScore");
            return (Criteria) this;
        }

        public Criteria andSmallScoreLessThan(Double value) {
            addCriterion("small_score <", value, "smallScore");
            return (Criteria) this;
        }

        public Criteria andSmallScoreLessThanOrEqualTo(Double value) {
            addCriterion("small_score <=", value, "smallScore");
            return (Criteria) this;
        }

        public Criteria andSmallScoreIn(List<Double> values) {
            addCriterion("small_score in", values, "smallScore");
            return (Criteria) this;
        }

        public Criteria andSmallScoreNotIn(List<Double> values) {
            addCriterion("small_score not in", values, "smallScore");
            return (Criteria) this;
        }

        public Criteria andSmallScoreBetween(Double value1, Double value2) {
            addCriterion("small_score between", value1, value2, "smallScore");
            return (Criteria) this;
        }

        public Criteria andSmallScoreNotBetween(Double value1, Double value2) {
            addCriterion("small_score not between", value1, value2, "smallScore");
            return (Criteria) this;
        }

        public Criteria andMemberTimeIsNull() {
            addCriterion("member_time is null");
            return (Criteria) this;
        }

        public Criteria andMemberTimeIsNotNull() {
            addCriterion("member_time is not null");
            return (Criteria) this;
        }

        public Criteria andMemberTimeEqualTo(Date value) {
            addCriterion("member_time =", value, "memberTime");
            return (Criteria) this;
        }

        public Criteria andMemberTimeNotEqualTo(Date value) {
            addCriterion("member_time <>", value, "memberTime");
            return (Criteria) this;
        }

        public Criteria andMemberTimeGreaterThan(Date value) {
            addCriterion("member_time >", value, "memberTime");
            return (Criteria) this;
        }

        public Criteria andMemberTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("member_time >=", value, "memberTime");
            return (Criteria) this;
        }

        public Criteria andMemberTimeLessThan(Date value) {
            addCriterion("member_time <", value, "memberTime");
            return (Criteria) this;
        }

        public Criteria andMemberTimeLessThanOrEqualTo(Date value) {
            addCriterion("member_time <=", value, "memberTime");
            return (Criteria) this;
        }

        public Criteria andMemberTimeIn(List<Date> values) {
            addCriterion("member_time in", values, "memberTime");
            return (Criteria) this;
        }

        public Criteria andMemberTimeNotIn(List<Date> values) {
            addCriterion("member_time not in", values, "memberTime");
            return (Criteria) this;
        }

        public Criteria andMemberTimeBetween(Date value1, Date value2) {
            addCriterion("member_time between", value1, value2, "memberTime");
            return (Criteria) this;
        }

        public Criteria andMemberTimeNotBetween(Date value1, Date value2) {
            addCriterion("member_time not between", value1, value2, "memberTime");
            return (Criteria) this;
        }

        public Criteria andRankIsNull() {
            addCriterion("rank is null");
            return (Criteria) this;
        }

        public Criteria andRankIsNotNull() {
            addCriterion("rank is not null");
            return (Criteria) this;
        }

        public Criteria andRankEqualTo(Integer value) {
            addCriterion("rank =", value, "rank");
            return (Criteria) this;
        }

        public Criteria andRankNotEqualTo(Integer value) {
            addCriterion("rank <>", value, "rank");
            return (Criteria) this;
        }

        public Criteria andRankGreaterThan(Integer value) {
            addCriterion("rank >", value, "rank");
            return (Criteria) this;
        }

        public Criteria andRankGreaterThanOrEqualTo(Integer value) {
            addCriterion("rank >=", value, "rank");
            return (Criteria) this;
        }

        public Criteria andRankLessThan(Integer value) {
            addCriterion("rank <", value, "rank");
            return (Criteria) this;
        }

        public Criteria andRankLessThanOrEqualTo(Integer value) {
            addCriterion("rank <=", value, "rank");
            return (Criteria) this;
        }

        public Criteria andRankIn(List<Integer> values) {
            addCriterion("rank in", values, "rank");
            return (Criteria) this;
        }

        public Criteria andRankNotIn(List<Integer> values) {
            addCriterion("rank not in", values, "rank");
            return (Criteria) this;
        }

        public Criteria andRankBetween(Integer value1, Integer value2) {
            addCriterion("rank between", value1, value2, "rank");
            return (Criteria) this;
        }

        public Criteria andRankNotBetween(Integer value1, Integer value2) {
            addCriterion("rank not between", value1, value2, "rank");
            return (Criteria) this;
        }

        public Criteria andProductsIsNull() {
            addCriterion("products is null");
            return (Criteria) this;
        }

        public Criteria andProductsIsNotNull() {
            addCriterion("products is not null");
            return (Criteria) this;
        }

        public Criteria andProductsEqualTo(Integer value) {
            addCriterion("products =", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsNotEqualTo(Integer value) {
            addCriterion("products <>", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsGreaterThan(Integer value) {
            addCriterion("products >", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsGreaterThanOrEqualTo(Integer value) {
            addCriterion("products >=", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsLessThan(Integer value) {
            addCriterion("products <", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsLessThanOrEqualTo(Integer value) {
            addCriterion("products <=", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsIn(List<Integer> values) {
            addCriterion("products in", values, "products");
            return (Criteria) this;
        }

        public Criteria andProductsNotIn(List<Integer> values) {
            addCriterion("products not in", values, "products");
            return (Criteria) this;
        }

        public Criteria andProductsBetween(Integer value1, Integer value2) {
            addCriterion("products between", value1, value2, "products");
            return (Criteria) this;
        }

        public Criteria andProductsNotBetween(Integer value1, Integer value2) {
            addCriterion("products not between", value1, value2, "products");
            return (Criteria) this;
        }

        public Criteria andWinsIsNull() {
            addCriterion("wins is null");
            return (Criteria) this;
        }

        public Criteria andWinsIsNotNull() {
            addCriterion("wins is not null");
            return (Criteria) this;
        }

        public Criteria andWinsEqualTo(Integer value) {
            addCriterion("wins =", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsNotEqualTo(Integer value) {
            addCriterion("wins <>", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsGreaterThan(Integer value) {
            addCriterion("wins >", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsGreaterThanOrEqualTo(Integer value) {
            addCriterion("wins >=", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsLessThan(Integer value) {
            addCriterion("wins <", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsLessThanOrEqualTo(Integer value) {
            addCriterion("wins <=", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsIn(List<Integer> values) {
            addCriterion("wins in", values, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsNotIn(List<Integer> values) {
            addCriterion("wins not in", values, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsBetween(Integer value1, Integer value2) {
            addCriterion("wins between", value1, value2, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsNotBetween(Integer value1, Integer value2) {
            addCriterion("wins not between", value1, value2, "wins");
            return (Criteria) this;
        }

        public Criteria andTiesIsNull() {
            addCriterion("ties is null");
            return (Criteria) this;
        }

        public Criteria andTiesIsNotNull() {
            addCriterion("ties is not null");
            return (Criteria) this;
        }

        public Criteria andTiesEqualTo(Integer value) {
            addCriterion("ties =", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesNotEqualTo(Integer value) {
            addCriterion("ties <>", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesGreaterThan(Integer value) {
            addCriterion("ties >", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesGreaterThanOrEqualTo(Integer value) {
            addCriterion("ties >=", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesLessThan(Integer value) {
            addCriterion("ties <", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesLessThanOrEqualTo(Integer value) {
            addCriterion("ties <=", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesIn(List<Integer> values) {
            addCriterion("ties in", values, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesNotIn(List<Integer> values) {
            addCriterion("ties not in", values, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesBetween(Integer value1, Integer value2) {
            addCriterion("ties between", value1, value2, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesNotBetween(Integer value1, Integer value2) {
            addCriterion("ties not between", value1, value2, "ties");
            return (Criteria) this;
        }

        public Criteria andFailsIsNull() {
            addCriterion("fails is null");
            return (Criteria) this;
        }

        public Criteria andFailsIsNotNull() {
            addCriterion("fails is not null");
            return (Criteria) this;
        }

        public Criteria andFailsEqualTo(Integer value) {
            addCriterion("fails =", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsNotEqualTo(Integer value) {
            addCriterion("fails <>", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsGreaterThan(Integer value) {
            addCriterion("fails >", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsGreaterThanOrEqualTo(Integer value) {
            addCriterion("fails >=", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsLessThan(Integer value) {
            addCriterion("fails <", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsLessThanOrEqualTo(Integer value) {
            addCriterion("fails <=", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsIn(List<Integer> values) {
            addCriterion("fails in", values, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsNotIn(List<Integer> values) {
            addCriterion("fails not in", values, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsBetween(Integer value1, Integer value2) {
            addCriterion("fails between", value1, value2, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsNotBetween(Integer value1, Integer value2) {
            addCriterion("fails not between", value1, value2, "fails");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIsNull() {
            addCriterion("category_id is null");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIsNotNull() {
            addCriterion("category_id is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryIdEqualTo(Integer value) {
            addCriterion("category_id =", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotEqualTo(Integer value) {
            addCriterion("category_id <>", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdGreaterThan(Integer value) {
            addCriterion("category_id >", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("category_id >=", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdLessThan(Integer value) {
            addCriterion("category_id <", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdLessThanOrEqualTo(Integer value) {
            addCriterion("category_id <=", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIn(List<Integer> values) {
            addCriterion("category_id in", values, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotIn(List<Integer> values) {
            addCriterion("category_id not in", values, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdBetween(Integer value1, Integer value2) {
            addCriterion("category_id between", value1, value2, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("category_id not between", value1, value2, "categoryId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdIsNull() {
            addCriterion("place_id is null");
            return (Criteria) this;
        }

        public Criteria andPlaceIdIsNotNull() {
            addCriterion("place_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceIdEqualTo(Integer value) {
            addCriterion("place_id =", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdNotEqualTo(Integer value) {
            addCriterion("place_id <>", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdGreaterThan(Integer value) {
            addCriterion("place_id >", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("place_id >=", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdLessThan(Integer value) {
            addCriterion("place_id <", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdLessThanOrEqualTo(Integer value) {
            addCriterion("place_id <=", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdIn(List<Integer> values) {
            addCriterion("place_id in", values, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdNotIn(List<Integer> values) {
            addCriterion("place_id not in", values, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdBetween(Integer value1, Integer value2) {
            addCriterion("place_id between", value1, value2, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("place_id not between", value1, value2, "placeId");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Byte value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Byte value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Byte value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Byte value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Byte value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Byte> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Byte> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Byte value1, Byte value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Byte value1, Byte value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}